import request from '@/utils/request'

// 品牌操作
export function operationBrand(data) {
  return request({
    url: '/operation_brand',
    method: 'get',
    params: data
  })
}

// 获取品牌列表
export function getBrandList(data) {
  return request({
    url: '/get_brand_list',
    method: 'get',
    params: data
  })
}

// 获取商品列表
export function getProductList(data) {
  return request({
    url: '/get_brand_product_list',
    method: 'get',
    params: data
  })
}

// 操作品牌商品
export function operationBrandProduct(data) {
  return request({
    url: '/operation_brand_product',
    method: 'get',
    params: data
  })
}

// 获取公司品牌介绍
export function getBrandInfo(data) {
  return request({
    url: '/get_brand_content',
    method: 'get',
    params: data
  })
}

// 获取品牌新闻列表
export function getBrandNewsList(data) {
  return request({
    url: '/get_brand_news_list',
    method: 'get',
    params: data
  })
}

// 操作新闻
export function operationBrandNews(data) {
  return request({
    url: '/operation_brand_news',
    headers: {
      'Content-type': 'application/x-www-form-urlencoded'
    },
    method: 'post',
    data
  })
}
// 品牌登录
export function brand_login(data) {
  return request({
    url: '/brand_user_login',
    method: 'get',
    params: data
  })
}
// 品牌获取权限
export function brandGetInfo(data) {
  return request({
    url: '/get_brand_user_qx',
    method: 'get',
    params: data
  })
}

// 获取新闻详情
export function getBrandNewsDetails(data) {
  return request({
    url: '/get_brand_news_content',
    method: 'get',
    params: data
  })
}
// 获取品牌等级
export function getBrandsLevels(data) {
  return request({
    url: '/get_brand_level_list',
    method: 'get',
    params: data
  })
}

// 操作品牌等级
export function operationBrandLevel(data) {
  return request({
    url: '/operation_brand_level',
    method: 'get',
    params: data
  })
}

// 操作品牌等级可升降级别
export function operationLevelUpDownApi(data) {
  return request({
    url: '/operation_anent_up_down_status',
    method: 'get',
    params: data
  })
}
// 品牌操作广告图
export function brandOperationAdApi(data) {
  return request({
    url: '/brand_save_advertisement_img',
    method: 'get',
    params: data
  })
}
// 根据品牌id 获取广告信息
export function getBrandAdApi(data) {
  return request({
    url: '/get_brand_advertisement_img',
    method: 'get',
    params: data
  })
}
